package com.sihan.framework.etm.entity;

import com.framework.model.BaseModel;
import com.framework.mybatis.annotation.AutoGenerator;
import com.framework.mybatis.enums.IdType;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户角色表
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserOrg extends BaseModel implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户单位ID
	 */
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	@AutoGenerator(idType = IdType.UUID32)
	private String id;

	/**
	 * 用户ID
	 */
	private String userId;

	/**
	 * 单位ID
	 */
	private String orgId;

	/**
	 * 是否删除
	 */
	private Boolean isDelete;
}
